<?php
defined('IN_PHPCMS') or exit('No permission resources.'); 
require PHPCMS_PATH . 'api/ValidateCode.class.php';  //先把类包含进来，实际路径根据实际情况进行修改。
$session_storage = 'session_'.pc_base::load_config('system','session_storage');
pc_base::load_sys_class($session_storage);


$_vc = new ValidateCode();  //实例化一个对象
$_vc->doimg();  
$_SESSION['authnum_session'] = $_vc->getCode();//验证码保存到SESSION中
//echo $_SESSION['authnum_session'];
$_vc->outPutimg();